#ifndef RESTROOM_HH
#define RESTROOM_HH

#include "Room.hh"
#include "Player.hh"

// A room that restores health for the player, and it is also possible to 
// escape the game through secret orders. 

class RestRoom : public Room {
    private:
        bool escapeUnlocked = false;
        const std::string secretCode = "letmein"; // 玩家若输入该指令可逃脱游戏

    public:
        RestRoom()=default;
        RestRoom(const RestRoom& other)=default;
        RestRoom& operator=(const RestRoom& other)=default;
        RestRoom(const std::string& name, const std::string& description);
        void enterRoom(Player& player) override;
        bool hasEscapeUnlocked() const;
};

#endif
